package messagesPacks;

import java.net.InetAddress;

import messagesPacks.GenericMessage.msgType;

public class LogoutMessage extends GenericMessage 
{
	private static final long serialVersionUID = 1L;
	private String ip;
	private int logoutResult = -9;
	
	public LogoutMessage(String address)
	{
		this.type = msgType.LogoutMSG;
		this.ip = address;
	}

	public String getIP()
	{
		return this.ip;
	}
	
	public void setIP(String ip)
	{
		this.ip = ip;
	}
	
    public int getLogoutResult()
    {
    	return this.logoutResult;
    }
    
    public void setLogoutResult(int res)
    {
    	if (res == 1)
    	  this.logoutResult = 1;
    	else 
    	  this.logoutResult = -1;
    }
}
